package org.southyin.securitysamples.controller;

import io.swagger.annotations.Api;
import org.southyin.securitysamples.commons.CommonsResp;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api(tags = "LoginController",description = "用户未登录提示接口")
public class LoginController {
    @GetMapping("/login")
    public CommonsResp login() {
        return CommonsResp.failed(401, "请先登录");
    }
}
